package com.newbingo.entity;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import com.newbingo.domain.common.EntitySupport;
import com.newbingo.domain.common.Identity;


@Entity
public class BettingCell implements java.io.Serializable {
	@Identity
	private Integer id;
	private String name;
	private float rate;
	private GamePlay gamePlay;
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public float getRate() {
		return rate;
	}
	public void setRate(float rate) {
		this.rate = rate;
	}


	@ManyToOne(cascade=CascadeType.ALL)
	@JoinColumn(name="gameplay_id")
	public GamePlay getGamePlay() {
		return gamePlay;

	}
	public void setGamePlay(GamePlay gamePlay) {
		this.gamePlay = gamePlay;
	}
	

}
